package picounit.java.collection;

import java.util.Iterator;

class IterableFromIterator<T> implements java.lang.Iterable<T> {
    IterableFromIterator(Iterator<T> iterator) {
        this.iterator = iterator;
    }

    public Iterator<T> iterator() {
        return iterator;
    }

    private final Iterator<T> iterator;
}